/// 默认推荐使用import type Foo from '...'
import type { Foo } from 'Foo';
import type Bar from 'Bar';
export type T = Foo;
export const x: Bar = 1;

import type Type from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import type { Type } from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import type * as Type from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import type Type from 'foo';
export { Type }; // is a type-only export
export default Type; // is a type-only export
export type { Type }; // is a type-only export

import type * as Type from 'foo';
export { Type }; // is a type-only export
export default Type; // is a type-only export
export type { Type }; // is a type-only export

//////
import type * as constants from './constants';
export type Y = {
  [constants.X]: ReadonlyArray<string>;
};

import type A from 'foo';
export = A;

import type A from 'foo';
export = {} as A;
